<?php
class excution extends CI_Controller  {

        /* 
            Project     : 48c6c450f1a4a0cc53d9585dc0fee742
            Created on  : Mar 16, 2013, 11:29:15 PM
            Author      : Truong Khuong - khuongxuantruong@gmail.com
            Description :
                Purpose of the stylesheet follows.
        */
        function __construct(){
            parent::__construct();
            $this->smarty=new CI_Smarty3();
            $this->smarty->error_reporting = E_ALL & ~E_NOTICE;
        }
		function getalias(){
            $text=$this->input->post("text");
            $result=1;
            $message=convertUrl($text);
            echo json_encode(array(
                "result"=>$result,
                "message"=>$message,
                "alias"=>$message
            ));
        }
        function index(){
            echo "index";
        }
        function errorlog(){
                if(isset($_SESSION['auth_db']['errors']))
                        echo '<pre>',print_r($_SESSION['auth_db']['errors']),'</pre>';
                else echo 'History is empty.';
        }
        function sessionlog(){
            if(isset($_SESSION))
                echo '<pre>',print_r($_SESSION),'</pre>';
            else echo 'Session is empty.';
        }
}
?>
